Binary-coded ternary